package com.kokomi.fanout_model;


import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component

public class FanoutConsumer1 {
    @RabbitListener(queues = "fanout_queue1")
    public void receive(String msg){
        System.out.println("FanoutConsumer1收到消息："+msg);
    }
}
